﻿namespace Core.Scene
{
    public class ShowWndNode : AbstractSceneNode, IAwake<int, int>
    {
        private int wndId;

        public void Awake(int quota, int id)
        {
            base.Awake(quota);

            wndId = id;
        }

        public override void Start()
        {
            //Debug.Log("ShowWndNode.Start");
            IsComplete = true;
            G.UI.Show(wndId);
        }

        public override void Update()
        {
            if (IsComplete)
            {
                return;
            }
        }

        public override void Finish()
        {
            //Debug.Log("ShowWndNode.Finish");
        }

    }
}
